/**
 * @Author: zyf
 * @Date: 2024/04/25/13:09
 * @Description:
 */
public class Option {

    private final String name;
    private final String param;

    public Option(String name) {
        this.name = name;
        this.param = "";
    }

    public Option(String name, String param) {
        this.name = name;
        this.param = param;
    }

    public String getName() {
        return name;
    }

    public String getParam() {
        return param;
    }

    @Override
    public String toString() {
        return param == null || param.isEmpty() ? name + " " : name + " " + param + " ";
    }
}
